package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2024-11-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_return_pack")
public class OrderReturnPackDo extends Model<OrderReturnPackDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("return_id")
    private Long returnId;

    /**
     * 到仓状态 0 未到 1到了
     */
    @TableField("reach")
    private int reach;

    @TableField("reach_time")
    private Date reachTime;

    /**
     * 物流跟踪号
     */
    @TableField("track_no")
    private String trackNo;

    /**
     * 承运商
     */
    @TableField("logistics_carrier_name")
    private String logisticsCarrierName;

    /**
     * 库位id
     */
    @TableField("location_id")
    private Long locationId;

    @TableField("length")
    private Double length;

    @TableField("width")
    private Double width;

    @TableField("height")
    private Double height;

    @TableField("weight")
    private Double weight;

    @TableField("length_w")
    private Double lengthW;

    @TableField("width_w")
    private Double widthW;

    @TableField("height_w")
    private Double heightW;

    @TableField("weight_w")
    private Double weightW;

    @TableField("tips")
    private String tips;

    @TableField("file_id")
    private Long fileId;

    @TableField("create_by")
    private Long createBy;

    @TableField("create_time")
    private Date createTime;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_time")
    private Date deleteTime;
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
